<#assign base=request.contextPath />
<#assign oneLabel="系统管理">

<#assign twoLabel="资源管理">
<#assign twoUrl=base+"/resources/list">

<#assign leafLabel="资源列表">
<!DOCTYPE html>
<html lang="en">
<head>
	<link href="${base}/static/tree/jslib/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">
	<#include "/commons/headImport.ftl">
</head>
<body>
<#include "/commons/header.ftl">
<form class="form-horizontal" name="formName" method="post">
<div class="row">
	<div class="col-xs-12">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">名称 </label>
			<div class="col-sm-3">
				<input type="text" name="qname" value="${resourcesQueryDO.qname!''}" class="col-sm-10" />
			</div>
			<div class="col-sm-2orm-group center">
				<button class="btn btn-xs btn-success" type="button" id="search_id" url="${base}/resources/list">
					<i class="icon-search icon-on-right bigger-110"></i>查询
				</button>
				<button class="btn btn-xs" type="reset" id="reset_id" url="${base}/resources/list">
					<i class="icon-undo bigger-110"></i>重置
				</button>
			</div>
		</div>
		<div class="space-4"></div>
		
		<div class="form-group">
			<div class="col-sm-6">
				<div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
					<@shiro.hasPermission name="/resources/add">
					<a class="btn btn-minier btn-success"  id="add" data="${base}/resources/add" href="javascript:void(0);" title="新增资源">
						<i class="icon-plus bigger-120"></i>新增资源
					</a>
					</@shiro.hasPermission>
					<@shiro.hasPermission name="/resources/edit">
					<a class="btn btn-minier btn-success" id="edit" data="${base}/resources/edit" href="javascript:void(0);" title="修改信息">
						<i class="icon-edit bigger-120"></i>修改资源
					</a>
					</@shiro.hasPermission>
					<@shiro.hasPermission name="/resources/delete">
					<a class="btn btn-minier btn-danger" id="delete" data="${base}/resources/delete" href="javascript:void(0);" title="删除信息">
						<i class="icon-trash bigger-120"></i>删除资源
					</a>
					</@shiro.hasPermission>
					<#--<@shiro.hasPermission name="/reloadShiro">-->
					<a class="btn btn-minier btn-success" id="reload" data="${base}/reloadShiro" href="javascript:void(0);" >
						<i class="icon-refresh bigger-150"></i>
						权限更新
					</a>
					<#--</@shiro.hasPermission>-->
	
				</div>								
			</div>
			<div class="space-4"></div>
		</div>
		
		<div class="table-responsive">
			<ul id="tree" class="ztree" style="width:260px; overflow:auto;"></ul>
		</div><!-- /.table-responsive -->
	</div><!-- /col -->
</div><!-- /row -->
<input type="hidden" name="treeJson" value='${list}' id="_json_id">
</form>
<#include "/commons/footer.ftl">
<!-- inline scripts related to this page -->
<script src="${base}/static/layer/layer.js"></script>
<script type="text/javascript" src="${base}/static/tree/jslib/zTreeStyle/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript" src="${base}/static/js/admin/resources.tree.js"></script>
</body>
</html>
